#include <stdio.h>

int main(int argc, char *argv[]) {

    int a, b, c, n;

    scanf("%d %d", &a, &b);
    c = a * b;
    n = 0;

    //c=350 n=0 ------ c=35 n=5 ------ c=3  n=5*10+3
    while (c!=0)
    {
        n = n * 10 + c % 10;
        c /= 10;
    }

    printf("%d", n);

    return 0;
}